home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / syntax / blank.vim < prev    next >
Encoding:
Text File  |  2001-09-02  |  1.1 KB  |  47 lines

  1. " Vim syntax file
  2. " Language:     Blank 1.4.1
  3. " Maintainer:   Rafal M. Sulejman <unefunge@friko2.onet.pl>
  4. " Last change:  21 Jul 2000
  5.  
  6. " For version 5.x: Clear all syntax items
  7. " For version 6.x: Quit when a syntax file was already loaded
  8. if version < 600
  9.   syntax clear
  10. elseif exists("b:current_syntax")
  11.   finish
  12. endif
  13.  
  14. syn case ignore
  15.  
  16. " Blank instructions
  17. syn match blankInstruction "{[:;,\.+\-*$#@/\\`'"!\|><{}\[\]()?xspo\^&\~=_%]}"
  18.  
  19. " Common strings
  20. syn match blankString "\~[^}]"
  21.  
  22. " Numbers
  23. syn match blankNumber "\[[0-9]\+\]"
  24.  
  25. syn case match
  26.  
  27. " Define the default highlighting.
  28. " For version 5.7 and earlier: only when not done already
  29. " For version 5.8 and later: only when an item doesn't have highlighting yet
  30. if version >= 508 || !exists("did_blank_syntax_inits")
  31.   if version < 508
  32.     let did_blank_syntax_inits = 1
  33.     command -nargs=+ HiLink hi link <args>
  34.   else
  35.     command -nargs=+ HiLink hi def link <args>
  36.   endif
  37.  
  38.   HiLink blankInstruction      Statement
  39.   HiLink blankNumber           Number
  40.   HiLink blankString           String
  41.  
  42.   delcommand HiLink
  43. endif
  44.  
  45. let b:current_syntax = "blank"
  46. " vim: ts=8
  47.